package com.qys.livesMall.anchor.model.vo.lives.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class AnchorLivesVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "直播间id")
    private Long id;

    @Schema(description = "直播间编号")
    private String livesRoomNum;

    @Schema(description = "直播场次名称")
    private String livesSessionName;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "主播id")
    private Long anchorId;

    @Schema(description = "主播名")
    private String anchorName;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "主播头像")
    private String avatar;

    @Schema(description = "主播粉丝数量")
    private Integer fans;

    @Schema(description = "直播间状态(0:正常  1:已封禁)")
    private Byte status;

    @Schema(description = "直播状态 1:未开播  2：开播中")
    private Byte liveStatus;

    @Schema(description = "最后一次直播时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLiveTime;

    @Schema(description = "创建时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "直播间截图")
    private String livesImage;
}
